#include <stdlib.h>
#include <stdio.h>
#include <nds.h>

// common headers
#include "common.h"

// local headers

#include "sound.h"

void soundInit() {
	mm_ds_system sys;
	bzero(&sys, sizeof(mm_ds_system));
	sys.fifo_channel=FIFO_MAXMOD;

	mmInit( &sys );
}

u8 isSStreaming=0;

int StreamOpen(mm_stream* stream) {
	if(isSStreaming) return 1;
	isSStreaming=1;

	stream->timer=MM_TIMER1;

	mmStreamOpen(stream);

	return 0;
}

void StreamClose() {
	mmStreamClose();

	isSStreaming=0;
}

